package com.luoqiu.yygh.user.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.luoqiu.yygh.common.result.Result;
import com.luoqiu.yygh.vo.user.LoginVo;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * sentinel的限流熔断的兜底类
 * 兜底方法必须是static的
 */
public class MySentinelHandler {

    public static Result<Object> login_err(@RequestBody LoginVo loginVo, BlockException exception) {
        return Result.fail();
    }
}
